﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [Table(Tablename = "member_grade")]
    public class MemberGrade: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String code;

        [Table(Columnname="code", Columntype="varchar", Isupdatefield=true)]
        public String Code
        {
            get { return code; }
            set { code = value; }
        }

        private String name;

        [Table(Columnname="name", Columntype="varchar", Isupdatefield=true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private Int64 integralMax;

        [Table(Columnname = "integral_max", Columntype="bigint", Isupdatefield=true)]
        public Int64 IntegralMax
        {
            get { return integralMax; }
            set { integralMax = value; }
        }

        private Int64 integralMin;

        [Table(Columnname = "integral_min", Columntype = "bigint", Isupdatefield = true)]
        public Int64 IntegralMin
        {
            get { return integralMin; }
            set { integralMin = value; }
        }

        private Decimal discount;

        [Table(Columnname = "discount", Columntype = "decimal", Isupdatefield = true)]
        public Decimal Discount
        {
            get { return discount; }
            set { discount = value; }
        }
    }
}
